﻿1857.1.1 = {
	capital = 1037

	oob = "BRA_1857"
	set_naval_oob = "BRA_1857_naval_mtg"

	set_convoys = 200

	set_research_slots = 3

	set_stability = 0.6

	set_power_balance = {
		id = BRA_Balance_of_Power_1857
		left_side = BRA_BOP_government
		right_side = BRA_BOP_opposition
	
		set_value = 0
	}

	### Economy
    add_ideas = generic_unemployment_idea
    set_variable = { unemployment_value_modifier = 0.1 }
    set_variable = { current_unemployment = 0.05 }
    clamp_variable = {
        var = current_unemployment
        min = 0
        max = 1
    }
    update_unemployment_modifier = yes
    add_to_variable = { money = 4 }
	set_variable = { current_loans_sum = 6 }

	add_ideas = {
	
		#GOVERNMENT
		#constitutional_monarchy
		#limited_constitution
		limited_elections
		#limited_independence 
		
		#STATE OF COUNTRY
		BRA_Pedro_II 
		#weak_heir
		victorian_era
		doctrine_napoleonic_army_1
		agrarian
		
		#ECONOMIC POLICIES
		export_focus
		civilian_economy
		taxation_level_1
		cl_legal
		
		### Economy
		#add_ideas = generic_unemployment_idea
		#set_variable = { unemployment_value_modifier = 0.1 }
		#set_variable = { current_unemployment = 0.22 }
		#clamp_variable = {
		#	var = current_unemployment
		#	min = 0
		#	max = 1
		#}
		#update_unemployment_modifier = yes
		#add_to_variable = { money = 70 }

		
		#INDIVIDUAL LIBERTS
		#stagnation_growth
		border_control
		usa_slavery_law
		limited_conscription
		property_owners_suffrage
		state_religion
		#religion_catholic
		
		#INTERNAL BUDGET LAWS
		social_spending_level_1
		law_spending_level_5
		road_spending_level_2
		navy_spending_level_4
		research_spending_level_1
		army_spending_level_2
		
		#POLITICAL LIBERTS
		privileged_education
		free_press
		pp_open_politics
		tu_prohibited
		high_judge_courtroom
		foa_free_assembly
		
		#NATIONAL SPIRITS
		BRA_transatlantic
		BRA_recovery_effort1
		BRA_golden_prosperity
	}

	BRA = { 
		add_to_variable = { prestige_score = 5 }
	}

	set_technology = {
		
		#Tribal Techs

		tribal_carrier_birds = 1
		tribal_electrical_theory = 1
		tribal_steel_tools = 1
		tribal_tatics = 1
		tribal_gunpowder = 1
		tribal_riding = 1
		tribal_steam_experiments = 1
		tribal_forging = 1
		tribal_artisan = 1
		tribal_chemistry = 1
		tribal_guilds_trade = 1
		tribal_crop_planting = 1
		tribal_irrigation = 1
		tribal_crop_rotation = 1
		tribal_salted_smoked_goods = 1
		tribal_leching = 1
		start_build_tech = 1
		
		#Army
		#Weapons & Equipment
		traditional_mixed_arms = 1
		infantry_weapons = 1
		 
		rifle_equipment1 = 1
		tech_infantry_flintlock_pistol = 1
		tech_infantry_caplock_pistol = 1
		tech_infantry_practical_rifling = 1
		tech_infantry_infantry_swords = 1
		socket_bayonet = 1
		#Uniforms
		tech_infantry_napoleonic_uniform = 1
		vic_army_cloth = 1
		civil_army_cloth = 1
		#Cavalry
		basic_cavalry = 1
		horse_transport = 1
		horse_artillery = 1
		mounted_infantry = 1
		#Special Forces
		tech_infantry_colonial_marines = 1
		tech_infantry_navy_revolver = 1
		tech_infantry_special_infantry_corps = 1

		#Army Support
		tech_support = 1
		tech_engineers = 1
		tech_recon = 1
		tech_maintenance_company = 1
		
		#Artillery
		gw_artillery = 1
		early_howitzer = 1
		
		#Naval
		#Gunboats and Monitors
		tech_naval_early_gunboat  = 1
		tech_naval_1850_gunboat = 1
		#Corvettes and Destroyers
		tech_naval_corvette = 1
		
		#Mainlin Ships
		tech_naval_early_frigate = 1
		tech_naval_1850_frigate = 1
		#Heavy Ships
		tech_naval_lineship = 1
		tech_naval_mtg_hardwood_capital_ship_hulls = 1
		#Armament
		tech_naval_mtg_24_pounder_battery = 1
		#Propulsion
		tech_naval_mtg_sails = 1
		screw_propeller = 1
		#Fire Control
		tech_naval_mtg_crows_nest = 1
		#Transport Ships
		tech_naval_capital_ship_naval_transportation = 1
		
		#Navy Legacy
		tech_naval_early_frigate = 1
		tech_naval_1850_frigate = 1
		tech_naval_corvette = 1
		tech_naval_lineship = 1
		tech_naval_early_gunboat = 1
		tech_naval_1850_gunboat = 1

		#Armor
		basic_train = 1

		#Mechanical Engineering
		#Railroad
		mass_transit_early = 1
		iron_railways = 1
		#Locomotives
		steam_locomotive = 1 #Steam Locomotive I
		#Engines
		steam_engine = 1 #Atmospheric Steam Engine
		high_speed_steam_engine = 1 #High-Pressure Steam Engine
		#Industrial Production
		manufactories = 1
		#Machine Tools
		interchange_parts = 1
		corliss_steam_engine = 1
		
		#Process Engineering
		#Chemical Process
		hot_blast_furnaces = 1
		industrial_finery_forge = 1
		#Oil Refining
		refining = 1
		
		#Biochemistry
		#Food Preservation
		food_preserving_icebox = 1
		#Agriculture
		early_artificial_fertilizer = 1
		pre_industrial_farms = 1
		
		#Electronics and Instruments
		#Telegraph
		electrical_engineering = 1
		
		#Socio-Economics & Humanities
		tech_humanities_mercantilism = 1
	}

	set_grand_doctrine = grand_doctrine_napoleonic_era
	set_sub_doctrine = napoleonic_light_cavalry_doctrine
	add_mastery = {
		amount = 100
		sub_doctrine = napoleonic_light_cavalry_doctrine
	}
	set_sub_doctrine = napoleonic_innovative_doctrine
	set_grand_doctrine = grand_doctrine_victorian_air

	add_equipment_to_stockpile = { type = train_equipment_1 amount = 2 producer = BRA }

	set_politics = {
		ruling_party = traditional_conservatism	 #autocracy
	}
	
	#DIPLOMACY
		#Most Favored Country
		set_variable = { var = most_favoured_country value = ENG.id }
		#Rival Country
		set_variable = { var = rival_country value = ARG.id }
		
		add_opinion_modifier = { target = URG modifier = BRA_boundary_treaty }
		add_opinion_modifier = { target = URG modifier = BRA_navigation_treaty }
		URG = {
			add_opinion_modifier = { target = BRA modifier = BRA_boundary_treaty }
			add_opinion_modifier = { target = BRA modifier = BRA_navigation_treaty }
		}
		POR = {
			add_opinion_modifier = { target = BRA modifier = BRA_friendship_treaty }
		}
		add_opinion_modifier = { target = POR modifier = BRA_friendship_treaty }
		
	set_popularities = {
		autocracy = 0	#82
		traditional_conservatism = 64	#10
		radical_democracy = 0
		centrism = 36	#6
		ideology_social_liberalism = 0
		anarchism = 0
		ideology_radical_socialism = 0
		social_egalitarianism = 0	#2
		chauvinist_populism = 0
		fundamentalism = 0
	}
	add_equipment_to_stockpile = { type = infantry_equipment_rifle_0 amount = 1000 producer = BRA }
	add_equipment_to_stockpile = { type = uniform_equipment_0 amount = 1000 producer = BRA }
	#Brazil's National Debt amounts to 5.551m Pound Sterling as of 1857;
	
	#TRADE
	
	#ENG = {
	#	create_import = {
	#		resource = cotton
	#		amount = 8
	#		exporter = BRA
	#	}
	#}
	
	#BEL = {
	#	create_import = {
	#		resource = cotton
	#		amount = 8
	#		exporter = BRA
	#	}
	#}
	
	#PAP = {
	#	create_import = {
	#		resource = cotton
	#		amount = 8
	#		exporter = BRA
	#	}
	#}
	
	#LVN = {
	#	create_import = {
	#		resource = cotton
	#		amount = 8
	#		exporter = BRA
	#	}
	#}
	
	# POLITICAL LEADERS
	recruit_character = BRA_Pedro_II
	recruit_character = BRA_General_Assembly
	recruit_character = BRA_Marquis_of_Olinda
	
	#Army & navy
	recruit_character = BRA_Luis_Alves_de_Lima_e_Silva
	recruit_character = BRA_Deodoro_da_Fonseca
	recruit_character = BRA_Manuel_Luis_Osorio
	recruit_character = BRA_Manuel_Marques_de_Sousa
	#recruit_character = BRA_Gaston_Count_of_Eu
	recruit_character = BRA_Carlos_De_Morais_Camisao
	recruit_character = BRA_Jose_Barreto
	recruit_character = BRA_Henrique_de_Beaurepaire_Rohan
	recruit_character = BRA_Joaquim_Marques_Lisboa
	recruit_character = BRA_Luis_da_Cunha_Moreira
	recruit_character = BRA_Francisco_Manuel_Barroso_da_Silva
	recruit_character = BRA_Joaquim_Antonio_Cordovil_Maurity
	recruit_character = BRA_Antonio_Luis_von_Hoonholtz
	recruit_character = BRA_Elisiario_Antonio_dos_Santos
	recruit_character = BRA_Antonio_Manuel_de_Melo
	recruit_character = BRA_Antonio_Nicolau_Falcao_da_Frota
	recruit_character = BRA_Antonio_Tiburcio_Ferreira_de_Sousa
	recruit_character = BRA_Hilario_Maximiniano_Antunes_Gurjao
	recruit_character = BRA_Hipolito_Pinto_Ribeiro
	recruit_character = BRA_Joao_Nunes_da_Silva_Tavares
	recruit_character = BRA_Polidoro_da_Fonseca_Quintanilha_Jordao
	recruit_character = BRA_Jose_Auto_da_Silva_Guimaraes
	recruit_character = BRA_Manuel_da_Fonseca_de_Lima_e_Silva
	recruit_character = BRA_Conrado_Jaco_de_Niemeyer
	recruit_character = BRA_Francisco_Xavier_Cabral_da_Silva
	recruit_character = BRA_Jose_Antonio_Correia_da_Camara
	recruit_character = BRA_Jose_Simeao_de_Oliveira
	recruit_character = BRA_Severiano_Martins_da_Fonseca
	recruit_character = BRA_Aires_Antonio_de_Morais_Ancora
	recruit_character = BRA_Antonio_Eneas_Gustavo_Galvao
	recruit_character = BRA_Gustav_Heinrich_von_Braun
	recruit_character = BRA_Emile_Louis_Mallet
	recruit_character = BRA_Francisco_Felix_da_Fonseca_Pereira_Pinto
	recruit_character = BRA_Joao_Frederico_Caldwell
	recruit_character = BRA_Joao_de_Sousa_da_Fonseca_Costa
	recruit_character = BRA_Jose_Egidio_Gordilho_de_Barbuda_Filho
	recruit_character = BRA_Pedro_de_Alcantara_Bellegarde
	recruit_character = BRA_Hermes_Ernesto_da_Fonseca
	recruit_character = BRA_Augusto_Joao_Manuel_Leverger
	recruit_character = BRA_Eduardo_Wandenkolk
	recruit_character = BRA_Napoleao_Joao_Baptista_Level
	recruit_character = BRA_Alexandre_Gomes_Ferrao
	recruit_character = BRA_Alexandre_Gomes_Ferrao_Filho
	
	#ADVISORS AND LEADERS
	#1857 Conciliatory Cabinet
	#Marquis of Olinda - Pedro de Araújo Lima
	recruit_character = BRA_francisco_pereira
	recruit_character = BRA_jeronimo_coelho
	recruit_character = BRA_viscount_of_maranguape
	recruit_character = BRA_viscount_of_sousa_franco
	recruit_character = BRA_jose_antonio_saraiva
	
	#1858 Conservative Cabinet
	recruit_character = BRA_viscount_of_abaete					#Antônio Paulino Limpo de Abreu
	recruit_character = BRA_sergio_teixeira_macedo
	recruit_character = BRA_Jose_Tomas_Nabuco_de_Araujo_Filho
	recruit_character = BRA_viscount_of_inhomirim				#Francisco de Sales Torres Homem	
	recruit_character = BRA_marquis_of_muritiba 				#Manuel Vieira Tosta
	recruit_character = BRA_manuel_felizardo_de_sousa_e_melo
	recruit_character = BRA_viscount_of_rio_branco				#José Maria da Silva Paranhos
	
	#1858 Ultra Conservative Cabinet
	recruit_character = BRA_eusebio_de_queiros
	recruit_character = BRA_viscount_of_uruguay					#Paulino José Soares de Sousa
	recruit_character = BRA_viscount_of_itaborai				#Joaquim José Rodrigues Torres
	recruit_character = BRA_viscount_of_niteroi					#Francisco de Paula Negreiros de Saião Lobato
	#Marquis of Muritiba - Manuel Vieira Tosta
	#Manuel Felizardo de Sousa e Melo
	
	
	#1858 Liberal Cabinet
	recruit_character = BRA_Francisco_Jose_Furtado 				#President of Council of Ministers
	recruit_character = BRA_jose_liberato_barroso
	recruit_character = BRA_viscount_of_caravelas
	recruit_character = BRA_joao_pedro_dias_vieira
	recruit_character = BRA_baron_of_pinto_lima
	#Henrique de Beaurepaire Rohan Army Chief
	
	#1859 Ultra Conservative Cabinet
	recruit_character = BRA_Marquis_of_Monte_Alegre				#José da Costa Carvalho
	#Eusébio de Queiros Matoso Câmara
	#Viscount of Uruguay Paulino José Soares de Sousa
	#Viscount of Itaboraí - Joaquim José Rodrigues Torres
	#Marquis of Muritiba - Manuel Vieira Tosta
	#Manuel Felizardo de Sousa e Melo
	
	#1859 Conservative Cabinet
	recruit_character = BRA_Angelo_Muniz_de_Silva_Ferraz
	recruit_character = BRA_Joao_Lustosa_da_Cunha_Paranagua
	recruit_character = BRA_francisco_xavier_paes_barreto
	recruit_character = BRA_sebastiao_do_rego_barros
	#recruit_character = BRA_joao_de_almeida_pereira_filho    No character entry or is commented out

	#1859 Conciliatory Cabinet
	recruit_character = BRA_Zacarias_de_Gois_e_Vasconcelos
	
	#1859 Liberal Cabinet
	recruit_character = BRA_baron_of_maua
	recruit_character = BRA_francisco_otaviano					#Francisco Otaviano
	recruit_character = BRA_Viscount_of_Sinimbu
	
	#1859 Liberal Radical Cabinet
	recruit_character = BRA_Teofilo_Benedito_Ottoni	#Téofilo Benedito Ottoni - President of Council of Ministers, Minister of Empire
	#Joaquim Saldanha Marinho - Minister of Justice
	#Cristiano Benedito Ottoni - Minister of Navy, railway
	#Lafayette Rodrigues Pereira - Minister of Finance
	#Quintino Antônio Ferreira de Sousa Bocaiuva - Foreing Minister
	#Benjamin Constant Botelho de Magalhães - Minister of War
	
#	recruit_character = BRA_Viscount_of_Ouro_Preto
	
	
#	recruit_character = BRA_antonio_paula_sousa
#	recruit_character = BRA_barao_de_cotegipe
	
#	recruit_character = BRA_benevenuto_taques
#	recruit_character = BRA_francisco_carlos_de_araujo_brusque
#	recruit_character = BRA_francisco_da_silveira_lobo
#	recruit_character = BRA_jesuino_marcondes
#	recruit_character = BRA_joao_alfredo
#	recruit_character = BRA_joao_carrao
#	recruit_character = BRA_joao_de_sousa
#	recruit_character = BRA_joao_frederico_caldwell
#	recruit_character = BRA_joaquim_antao
#	recruit_character = BRA_joaquim_jose_inacio
#	recruit_character = BRA_joaquim_nebias
#	recruit_character = BRA_jose_bonifacio
#	recruit_character = BRA_jose_de_alencar
#	recruit_character = BRA_jose_dias_de_carvalho
#	recruit_character = BRA_jose_joaquim_fernandes_torres
	recruit_character = BRA_jose_mariano_de_matos
#	recruit_character = BRA_marques_de_abrantes
#	recruit_character = BRA_martim_de_andrada
#	recruit_character = BRA_pedro_bellegarde
#	recruit_character = BRA_raimundo_ferreira_de_araujo_lima
#	recruit_character = BRA_sousa_dantas_infrastructure
#	recruit_character = BRA_viscount_of_albuquerque
#	recruit_character = BRA_viscount_of_araxa
#	recruit_character = BRA_viscount_of_cavalcanti
#	recruit_character = BRA_viscount_of_cruzeiro
#	recruit_character = BRA_viscount_of_jaguari
#	recruit_character = BRA_viscount_of_lamare
#	recruit_character = BRA_viscount_of_santa_teresa
#	recruit_character = BRA_viscount_of_sao_vicente

	create_equipment_variant = {
		name = "Corvette Class"
		type = ship_hull_corvette_0
		name_group = GER_CA_HISTORICAL
		parent_version = 0
		modules = {
			fixed_ship_battery_slot = ship_cannon_battery_0
			fixed_ship_fire_control_system_slot = fire_control_system_0
			fixed_ship_engine_slot = ship_engine_sail_0
			fixed_ship_armor_slot = empty
			mid_1_custom_slot = empty
			front_1_custom_slot = empty
		}
	}
	create_equipment_variant = {
		name = "Ship of the Line Class"
		type = ship_hull_lineship_0
		name_group = GER_CA_HISTORICAL
		parent_version = 0
		modules = {
			fixed_ship_battery_slot = ship_cannon_battery_0
			fixed_ship_fire_control_system_slot = fire_control_system_0
			fixed_ship_engine_slot = ship_engine_sail_0
			fixed_ship_armor_slot = empty
			front_1_custom_slot = ship_cannon_battery_0
			front_2_custom_slot = empty
			mid_1_custom_slot = ship_cannon_battery_0
			mid_2_custom_slot = empty
			mid_3_custom_slot = empty
			rear_1_custom_slot = ship_cannon_battery_0
		}
	}
	create_equipment_variant = {
		name = "Frigate Class"
		type = ship_hull_frigate_0
		name_group = GER_CA_HISTORICAL
		parent_version = 0
		modules = {
			fixed_ship_battery_slot = ship_cannon_battery_0
			fixed_ship_fire_control_system_slot = fire_control_system_0
			fixed_ship_engine_slot = ship_engine_sail_0
			fixed_ship_armor_slot = empty
			front_1_custom_slot = empty
			mid_1_custom_slot = ship_cannon_battery_0
			mid_2_custom_slot = empty
			rear_1_custom_slot = empty
		}
	}
	create_equipment_variant = {
		name = "Frigate Class"
		type = ship_hull_frigate_1
		name_group = GER_CA_HISTORICAL
		parent_version = 0
		modules = {
			fixed_ship_battery_slot = ship_cannon_battery_1
			fixed_ship_fire_control_system_slot = fire_control_system_0
			fixed_ship_engine_slot = ship_engine_sail_1
			fixed_ship_armor_slot = empty
			front_1_custom_slot = ship_cannon_battery_1
			mid_1_custom_slot = empty
			mid_2_custom_slot = empty
			rear_1_custom_slot = empty
		}
	}
	create_equipment_variant = {
		name = "Gunboat Class"
		type = ship_hull_gunboat_1
		name_group = GER_CA_HISTORICAL
		parent_version = 0
		modules = {
			fixed_ship_battery_slot = ship_cannon_battery_0
			fixed_ship_fire_control_system_slot = fire_control_system_0
			fixed_ship_engine_slot = ship_engine_paddle_gunboat
			fixed_ship_secondaries_slot = empty
			fixed_ship_armor_slot = empty
			mid_1_custom_slot = empty
			mid_2_custom_slot = empty
			rear_1_custom_slot = ship_cannon_battery_0
		}
	}
	
	set_variable = { BRA_Livestock_Country_Money = 0.065 }  #monthly money
	set_variable = { BRA_Coffee_Country_Money =  0.402 } #monthly money
	set_variable = { BRA_Sugar_Country_Money =  0.210 } #monthly money
	set_variable = { BRA_Tobacco_Country_Money = 0.022 } #monthly money
	set_variable = { BRA_Cocoa_Country_Money = 0.015 } #monthly money
	set_variable = { BRA_Tea_Country_Money = 0.019 } #monthly money
	
	set_variable = { BRA_Agriculture_Country_Money = 0 }

	add_to_variable = {
		var = BRA_Agriculture_Country_Money
		value = BRA_Livestock_Country_Money
		#tooltip = 
	}
	add_to_variable = {
		var = BRA_Agriculture_Country_Money
		value = BRA_Coffee_Country_Money
		#tooltip = 
	}
	add_to_variable = {
		var = BRA_Agriculture_Country_Money
		value = BRA_Sugar_Country_Money
		#tooltip = 
	}
	add_to_variable = {
		var = BRA_Agriculture_Country_Money
		value = BRA_Tobacco_Country_Money
		#tooltip = 
	}
	add_to_variable = {
		var = BRA_Agriculture_Country_Money
		value = BRA_Cocoa_Country_Money
		#tooltip = 
	}
	add_to_variable = {
		var = BRA_Agriculture_Country_Money
		value = BRA_Tea_Country_Money
		#tooltip = 
	}
	
	#BRA_Livestock_Ranch_Setup_Money = yes
	#BRA_Coffee_Plantations_Setup_Money = yes
	#BRA_Sugar_Plantations_Setup_Money = yes
	#BRA_Tobacco_Plantations_Setup_Money = yes
	#BRA_Cocoa_Plantations_Setup_Money = yes

	set_variable = { BRA_Agriculture_Country_sf = 0 }
	set_variable = { BRA_Agriculture_Country_psif = 0 }
	set_variable = { BRA_Agriculture_Country_psicf = 0 }
	set_variable = { BRA_Agriculture_Country_psff = 0 }
	set_variable = { BRA_Agriculture_Country_pslcf = 0 }
	set_variable = { BRA_Agriculture_Country_pscff = 0 }
	add_dynamic_modifier = { modifier = dynmod_BRA_Agriculture_Money }

	#add_dynamic_modifier = { modifier = BRA_Livestock_Ranch_Money }
	#add_dynamic_modifier = { modifier = BRA_Cocoa_Plantations_Money  }
	#add_dynamic_modifier = { modifier = BRA_Tobacco_Plantations_Money  }
	#add_dynamic_modifier = { modifier = BRA_Coffee_Plantations_Money  }
	#add_dynamic_modifier = { modifier = BRA_Sugar_Plantations_Money  }
	#add_dynamic_modifier = { modifier = BRA_Tea_Plantations_Money  }

	add_cen_to_coalition = yes

	set_variable = { BRA_New_World_Immigrants_tom = 0 }
	set_variable = { BRA_New_World_Immigrants_lrf = 0 }
	set_variable = { BRA_New_World_Immigrants_pcmc = 0 }
	set_variable = { BRA_New_World_Immigrants_tom = 0 }
	set_variable = { BRA_New_World_Immigrants_rsf = 0 }
	set_variable = { BRA_New_World_Immigrants_pfmef = 0 }
	set_variable = { BRA_New_World_Immigrants_lcpef = 0 }
	set_variable = { BRA_New_World_Immigrants_icf = 0 }
	set_variable = { BRA_New_World_Immigrants_psicf = 0 }
	set_variable = { BRA_New_World_Immigrants_psaff = 0 }
	set_variable = { BRA_New_World_Immigrants_psff = 0 }
	set_variable = { BRA_New_World_Immigrants_pscff = 0 }
	set_variable = { BRA_New_World_Immigrants_mp = 0.05 }
	set_variable = { BRA_New_World_Immigrants_cgev = 0 }
	set_variable = { BRA_imperial_navy_nlcf = 0 }
	set_variable = { BRA_New_World_Immigrants_icd = 0 }
	add_dynamic_modifier = { modifier = dynmod_BRA_New_World_Immigrants }
}
